|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
PRELIMINARY CUSTOMER PROCUREMENT SPECIFICATION 1 Z86K13/K14/K15 K16/K17/K18 CMOS Z8(R) 8-BIT MCU KEYBOARD CONTROLLERS FEATURES Device Z86K13 Z86K14 Z86K15 Z86K16 Z86K17 Z86K18 ROM (KB) 2 3 4 2 3 4 I/O Lines 32 32 32 32 32 32 Speed (MHz) 4-5 4-5 4-5 4-5 4-5 4-5 Pin Count/ Package 40-DIP, 44-PLCC, 44-QFP, COB 40-DIP, 44-PLCC, 44-QFP, COB 40-DIP, 44-PLCC, 44-QFP, COB 40-DIP, 44-PLCC, 44-QFP, COB 40-DIP, 44-PLCC, 44-QFP, COB 40-DIP, 44-PLCC, 44-QFP, COB s s 1 Low-Power Consumption: 60 mW @ 5 MHz Five Vectored, Priority Interrupts from FIve Different Sources A Programmable 8-Bit Counter/Timer, with 6-Bit Programmable Prescaler Power-On-Reset (POR) Timer, Hardware Watch-Dog Timer (WDT) Digital Inputs CMOS Levels with Internal Pull-Up Resistors Four Direct Connect LED Drive Ports On-Chip RC Oscillator (Z86K13/14/15) On-Chip Oscillator that Accepts a Crystal, Ceramic Resonator, LC, or External Clock Drive (Z86K16/17/18) Low System EMI Emission s s s s s s s s s 4.5V to 5.5 V Operating Range 0C to +70C Operating Temperature Range 188 Bytes of Ram s GENERAL DESCRIPTION The Z86KXX Keyboard Controllers are full-featured members of the Z8(R) MCU family offering a unique register-toregister architecture that avoids accumulator bottlenecks and is more code efficient than RISC processors. For keyboard applications demanding powerful I/O capabilities, the Z86KXX provides 32 pins dedicated to input and output for row, column, clock, data, and LEDs. The on-chip counter/timer is available to relieve the system of administering real-time tasks. Five different internal or external interrupt sources are maskable and prioritized in which a vectored address is provided for efficient interrupt subroutine handling and multitasking functions. The Z86K15 achieves low EMI by means of several modifications in the output drivers and clock circuitry of the device. DS97KEY0204 PRELIMINARY 1 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog GENERAL DESCRIPTION (Continued) Notes: All signals with a preceding front slash, "/", are active Low. For example, B//W (WORD is active Low); /B/W (BYTE is active Low, only). Power connections follow conventional descriptions below: Connection Power Ground Circuit VCC Device VDD VSS GND XTAL1 VCC Output Input 4 4 VCC GND 3.3 V VR Port 3 Machine Timing & Inst. Control WDT ALU D+ D- USB SIE and Trans POR Flags Counter/ Timers Register Pointer Interrupt Control Register File 208 x 8-Bytes Program Memory 4 KB ROM Program Counter Port 2 Port 0 Port 1 4 I/O Input (Bit Programmable) 8 Open-Drain Output 8 Open-Drain Output Figure 1. Z86KXX Functional Block Diagram 2 PRELIMINARY XTAL2 DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers PIN DESCRIPTION P30 P31 P32 P33 *NC *NC P27 P26 P25 P24 GND VCC P00 P01 P02 P03 P04 P05 P06 P07 1 40 Z86KXX DIP 20 21 P23 P22 P21 P20 P37 P36 P35 P34 RCIN/XTAL1 AGND/XTAL2 GND VCC P17 P16 P15 P14 P13 P12 P11 P10 1 Notes: *Pin 5 and 6 used for testing Ground during normal operation. When Pin 5 is connected to VCC. Pin 6 is CLK OUT. When Pin 5 is connected to GND, Pin 6 outputs nothing. These pins must be tied to ground in application. Figure 2. 40-Pin DIP Configuration Table 1. 40-Pin DIP Pin Identification Pin # 1-4 5-6 7-10 11 12 13-20 21-28 29 30 31 32 33-36 37-40 Symbol P30-P33 NC P27-P24 GND VCC P00-P07 P10-P17 VCC GND AGND/XTAL2 RCIN/XTAL1 P34-P37 P20-P23 Function Port 3, Pins 0,1,2,3 Tied to GND Port 2, Pins 7,6,5,4 Ground Power Supply Port 0, Pins 0,1,2,3,4,5,6,7 Port 1, Pins 0,1,2,3,4,5,6,7 Power Supply Ground Analog Ground or Crystal Clock Out RCIN/Crystal Oscillator Clock Port 3, Pins 4,5,6,7 Port 2, Pins 0,1,2,3 Direction Input In/Output Input Output Output Input Output Input DS97KEY0204 PRELIMINARY 3 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog PIN DESCRIPTION (Continued) NC P27 P26 P25 P24 GND VCC P00 P01 P02 P03 7 NC NC P33 P32 P31 P30 P23 P22 P21 P20 P37 6 1 40 39 Z86KXX PLCC 17 18 29 28 NC P36 P35 P34 RCIN/XTAL1 NC AGND/XTAL2 GND VCC P17 NC Notes: Pins 5 and 6 used for testing. Ground during normal operation When Pin 43 is connected to VCC, Pin 44 is CLKOUT. When Pin 43 is connected to GND. Pin 44 outputs nothing. Figure 3. 44-Pin PLCC Pin Assignments Table 2. 44-Pin PLCC Pin Assignments Pin # 1-4 5-7 8-11 12 13 14-21 22-28 29 Symbol P30-P33 NC P27-P24 GND VCC P00-P07 P10-P16 NC Function Direction Pin # 30 31 32 33 Table 2. 44-Pin PLCC Pin Assignments Symbol P17 VCC Function Port 1, Pin 7 Power Supply Direction Output Port 3, Pins Input 0,1,2,3 Test Pins (GND) Port 2, Pins In/Output 4,5,6,7 Ground Power Supply Port 0, Pins Output 0,1,2,3,4,5,6,7 Port 1, Pins Output 0,1,2,3,4,5,6 Not Connected 4 P04 P05 P06 P07 P10 P11 P12 P13 P14 P15 P16 34 35 36-38 39 40 41-44 GND Ground AGND/ XTAL2 Analog Ground or Crystal Clock Out NC Not Connected RCIN/ XTAL1 RCIN/Crystal Input Oscillator Clock P34-P37 Port 3, Pins Output 4,5,6,7 NC Not Connected P37 Port 3, Pin 7 Output P20-P23 Port 2, Pins In/Output 0,1,2,3 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers NC P36 P35 P34 RCIN/XTAL1 NC AGND/XTAL2 GND VCC P17 NC 1 P16 P15 P14 P13 P12 P11 P10 P07 P06 P05 P04 33 P37 P20 P21 P22 P23 P30 P31 P32 P33 NC NC 34 23 22 Z86KXX QFP 44 1 12 11 Notes: Pins 43 and 44 are used for testing ground during normal operation. When Pin 45 is connected to VCC, Pin 46 is CLKOUT. When Pin 45 is connected to GND. Pin 46 outputs nothing. Figure 4. 44-Pin QFP Pin Assignments Table 3. 44-Pin QFP Pin Identification Pin # 1 2-5 6 7 8-15 16-22 23 24 25 Symbol NC P24-P27 GND VCC P00-P07 P10-P16 NC P17 VCC Function Not Connected Port 2, Pins 4,5,6,7 Ground Supply Voltage Port 0, Pins 0,1,2,3,4,5,6,7, Port 1, Pins 0,1,2,3,4,5,6 Not Connected Port 1, Pin 7 Supply Voltage Direction In/Output Pin # 26 27 28 29 Output Output 30-32 33 34 35-38 39-42 43-44 NC P27 P26 P25 P24 GND VCC P00 P01 P02 P03 Table 3. 44-Pin QFP Pin Identification Symbol Function Direction Output GND Ground AGND/ XTAL2 Analog Ground/ Crystal Clock Out NC Not Connected RCIN / XTAL1 RCIN/Crystal Oscillator Clock P34-P36 Port 3, Pins 4,5,6 NC Not Connected P37 Port 3, Pin 7 P20-P23 Port 2, Pins 0,1,2,3 P30-P33 Port 3, Pins 0,1,2,3 NC Test Pins (GND) Input Output Output Input Input DS97KEY0204 PRELIMINARY 5 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog ABSOLUTE MAXIMUM RATINGS Symbol VCC TSTG TA Description Supply Voltage* Storage Temp Oper Ambient Temp Min -0.3 -65 0 Max +7.0 +150 +105 Units V C C Stresses greater than those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only; operation of the device at any condition above those indicated in the operational sections of these specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Note: * Voltage on all pins with respect to GND. STANDARD TEST CONDITIONS The characteristics listed here apply for standard test conditions as noted. All voltages are referenced to GND. Positive current flows into the referenced pin (Figure 5). From Output Under T est 150 pF Figure 5. Test Load Diagram CAPACITANCE TA = 25C; VCC = GND = 0V; f = 1.0 MHz; unmeasured pins returned to GND. Parameter Input Capacitance Output Capacitance I/O Capacitance Frequency tolerance 10% Max 12 pF 12 pF 12 pF 6 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers DC CHARACTERISTICS VCC = 5.0V 10% @ 0C to +70C Sym VCH VCL VIH VIL VOH VOH VOL VOL IOL IOL ICC ICC1 ICC2 Rp Rp Parameter Clock Input High Voltage Clock Input Low Voltage Input High Voltage Input Low Voltage Output High Voltage Output High Voltage Output Low Voltage Output Low Voltage Output Low Output Leakage VCC Supply Current Halt Mode Current Stop Mode Current Pull Up Resistor Pull Up Resistor (P26-P27) 6.76 1.8 10 14.04 3 10.4 2.4 10 -1 Min 0.7 VCC GND -0.3 0.7 VCC GND -0.3 VCC -0.4 VCC -0.6 .4 .8 20 1 12 <1 6 2 Max VCC + 0.3V 0.2 VCC VCC + 0.3 0.2 VCC Typ* 2.5 1.5 2.5 1.5 4.7 Unit Condition V V V V V V V V mA A mA mA A K ohm K ohm IOH = -2.0 mA IOH = -2.0 mA (see note 1 below.) IOL= 4 mA IOL= 4 mA (see note 1 below.) VOL= VCC -2.2 V (see note 1, 2 below.) VIN = 0V, 5.25V @ 5.0 MHz @ 5.0 MHz Driven by External Clock Generator Driven by External Clock Generator 1 Notes: * Typical @ 25C 1. Ports P37-P34. These may be used for LEDs or as general-purpose outputs requiring high sink current. 2. Vcc = 5.0V 5% @ 0C to + 70C DS97KEY0204 PRELIMINARY 7 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog AC ELECTRICAL CHARACTERISTICS VCC Note[4] 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V 5.0V TA = 0C to 70C 5 MHz Min Max 200 37 70 2.5TpC 4TpC 100 70 3TpC 3TpC 5TpC 5TpC 53 106 130 ms ms 250 25 No 1 2 3 4 5 6 7 8A 8B 9 10 11 12 13 Symbol TpC TrC,TfC TwC TwTinL TwTinH TpTin TrTin, TwIL TwIL TwIH Twsm Tost Twdt TPOR Parameter Input Clock Period Clock Input Rise & Fall Times Input Clock Width Timer Input Low Width Timer Input High Width Timer Input Period Timer Input Rise & Fall Timer Int. Request Low Time Int. Request Low Time Int. Request Input High Time STOP Mode Recovery Width Spec Oscillator Start-up Time Watch-Dog Timer Delay Time Power--On Reset Units ns ns ns ns Notes 1 1 1 1 1 1 1,2 1,3 1,2 ns ns ns Notes: 1. Timing Reference uses 0.7 VCC for a logic 1 and 0.2 VCC for a logic 0. 2. Interrupt request through Port 3 (P31-P33). 3. Interrupt request through Port 3 (P30). 1 3 Clock 2 7 7 2 3 TIN 4 6 5 IRQN 8 9 Clock Setup 11 Stop Mode Recovery Source 10 Figure 6. Additional Timing 8 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers PIN FUNCTIONS RCIN. A precision resistor is connected between this pin and the power supply to form the precision RC oscillator. CLKOUT. This pin is the system clock of the Z8 and runs at the frequency of the RC oscillator (Test only). (R) Port 0 (P07-P00). Port 0 is an 8-bit, CMOS-compatible open-drain output (Figure 7). 1 Z86KXX 8 (Open-Drain Output) Port 0 Pad Output Figure 7. Port 0 Configuration DS97KEY0204 PRELIMINARY 9 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Port 1 (P17-P10). Port 1 is an 8-bit CMOS compatible open-drain output port (Figure 8). Zilog Open-Drain Output Z86KXX 8 Port 1 Pad Output Figure 8. Port 1 Configuration 10 PRELIMINARY DS97KEY0204 Zilog Port 2 (P27-P20). Port 2 is an 8-bit CMOS compatible Port with 4-bit input, 4-bit programmable I/O (Figure 9). P20- Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers P25 have 10.4K (35%) pull-up resistors. P26-P27 have 2.4K (25%) pull-up resistors. 1 4 Z86KXX I/O Input VCC (a) Ports P20-P23 Input 10.4 K Pad VCC 10.4 kOhm OEN Open-Drain (b) Ports P24-P25 Pad OUT Input IN VCC 2.4K OEN Open-Drain (c) Ports P26-P27 Pad Input OUT IN Figure 9. Port 2 Configuration DS97KEY0204 PRELIMINARY 11 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog PIN FUNCTIONS (Continued) Port 3 (P37-P30). Port 3 is an 8-bit, CMOS-compatible four-fixed input (P33-P30) and four-fixed output (P37-P34) I/O port. Port 3 inputs have 10.4 Kohm pull-up resistors. Outputs are capable of directly driving LED. Port 3 is configured under software control to provide four external interrupt request signals (IRQ0-IRQ3). Z86KXX Port 3 (a) Port 3 P34-P37 Output Pad (b) Port 3 P30-P33 10.4 kOhms Input Pad Figure 10. Port 3 Configuration 12 PRELIMINARY DS97KEY0204 Zilog Program Memory. The 16-bit program counter addresses 4 KB of program memory space at internal locations (Figure 11). The first 12 bytes of program memory are reserved for the interrupt vectors. These locations have six 16-bit vectors that correspond to the five available interrupts. Byte 12 to byte 4095* consists of on-chip, mask programmed ROM. Addresses 4096* and greater are reserved. (*2048 for K13/K16, 3072 for K14/K17) Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Register File. The register file (Figure 13) consists of four I/O port registers, 188 general-purpose registers (excluding P00-P03), and 11 control and status registers (R3-R0, R191-R4, and R255-R240, respectively). The instructions can access registers directly or indirectly through an 8-bit address field. This allows short, 4-bit register addressing using the Register Pointer. In the 4-bit mode, the register file is divided into nine working-register groups, each occupying 16 continuous locations. The Register Pointer addresses the starting location of the active working-register group. 1 65535 Reserved 2048/3072/4096 2047/3071/4095 Location of First Byte of Instruction Executed 12 After RESET 11 10 9 8 Interrupt Vector (Lower Byte) 7 6 5 Interrupt Vector (Upper Byte) 4 3 2 1 0 On-Chip ROM LOCATION R25 5 R25 4 R253 R252 R251 Stack Pointer (Bits 7-0) Reserved Register Pointer Program Control Flags Interrupt Mask Register Interrupt Request Register Interrupt Priority Register Reserved Port 3 Mode Port 2 Mode T0 Prescaler Timer/Counter0 Reserved Reserved Timer Mode Reserved Not Implemented R 191 General-Purpose Registers IDENTIFIERS SPL RP FLAGS IMR IRQ IPR Reserved Reserved IRQ4 IRQ4 IRQ3 IRQ3 IRQ2 IRQ2 IRQ1 IRQ1 IRQ0 IRQ0 R250 R249 R248 R247 R246 R245 R244 R243 R242 R241 R240 P3M P2M PREQ T0 TMR Figure 11. Program Memory Map R4 R3 R2 Port 3 Port 2 Port 1 Port 0 P3 P2 P1 P0 R253 RP D7 D6 D5 D4 D3 D2 D1 D0 R1 R0 Reserved Working Register Group Note:* Will not be reset with a STOP Mode Recovery. Figure 13. Register File Configuration Default setting after RESET = 00000000 Figure 12. Register Pointer Register DS97KEY0204 PRELIMINARY 13 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog PIN FUNCTIONS (Continued) Z8 STANDARD CONTROL REGISTERS REGISTER POINTER 7 6 5 4 3 2 1 0 REGISTER % FF SPL Reserved RP FLAGS IMR IRQ IPR Reserved P3M P2M PRE0 T0 Reserved Reserved TMR Reserved Working Register Group Pointer Reserved Register % FE % FD % FC % FB % FA % F9 % F8 Z8 Reg. File %FF %FO * * % F7 % F6 % F5 % F4 % F3 Not available %BF % F2 % F1 % F0 %0F %00 REG. GROUP (0) PORT REGISTERS % (0) 03 % (0) 02 % (0) 01 P3 P2 P1 P0 Note: * Will not be reset with a STOP Mode Recovery % (0) 00 Figure 14. Register File Architecture 14 PRELIMINARY DS97KEY0204 Zilog Counter/Timers. There is an 8-bit programmable counter/timer (T0) driven by its own 6-bit programmable prescaler (Figure 15). The 6-bit prescalers can divide the input frequency of the clock source by any integer number from 1 to 64. The prescaler drives its counter, which decrements the value (1 to 256) on the prescaler overflow. When both the counter and prescaler reach the end of count, a timer interrupt request, IRQ4, is generated. Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers The counter can be programmed to start, stop, restart to continue, or restart from the initial value. The counter can also be programmed to stop upon reaching zero (single pass mode) or to automatically reload the initial value and continue counting (modulo-n continuous mode) The counter, but not the prescaler, is read at any time without disturbing its value or count mode. 1 Internal Data Bus Write PRE0 Initial Value Register Write T0 Initial Value Register Read T0 Current Value Register OSC /4 6-Bit Down Counter 8-bit Down Counter IRQ4 Figure 15. Counter/Timers Block Diagram DS97KEY0204 PRELIMINARY 15 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog PIN FUNCTIONS (Continued) Interrupts. The Z86K15 has five different interrupts from five different sources. These interrupts are maskable and prioritized (Figure 16). The five sources are divided as follows: four sources are claimed by Port 3 lines P33-P30, and the other is claimed by the counter/timer. The Interrupt Masked Register globally or individually enables or disables the five interrupts requests. When more than one interrupt is pending, priorities are resolved by a programmable priority encoder that is controlled by the Interrupt Priority register. All interrupts are vectored through locations in the program memory. When an interrupt machine cycle is activated an interrupt request is granted. Thus, this disables all of the subsequent interrupts, saves the Program Counter and status flags, and then branches to the program memory vector location reserved for that interrupt. This memory location and the next byte contain the 16-bit address of the interrupt service routine for that particular interrupt request. To accommodate polled interrupt systems, interrupt inputs are masked and the interrupt request register is polled to determine which of the interrupt request needs service. RC Oscillator. The Z86K13/14/15 provides an internal capacitor to accommodate an RC oscillator configuration. A 1% precision resistor is necessary to achieve 10% accurate frequency oscillation. 5 Global Interrupt Enable Interrupt Request IPR IRQ0-IRQ4 5 IRQ IMR The Z86K15 also accepts external clock from (RCIN) with (AGND) connected to VCC (Figure 17). Priority Logic VCC Vector Select 1% Precision RCIN Figure 16. Interrupt Block Diagram NC CLKOUT RC Oscillator RCIN VCC AGND External Clock Figure 17. RC Oscillator Configuration 16 PRELIMINARY DS97KEY0204 Zilog Watch-Dog Timer. The Watch-Dog Timer is activated automatically by power-on if it is enabled in the Mask Option. The WDT is a retriggerable one-shot timer that resets the Z8 if it reaches its terminal count. The WDT is driven by the system clock. It must be refreshed at least once during each time cycle by executing the WDT instruction. WDT can be enabled by Mask Option. (Figure 18) WDT Hot bit. Bit 7 of the Interrupt Request register (IRQ register FAH) determines whether a hot start or cold start occurred. A cold start is defined as reset occurring from Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers power-up of the Z86K15 (the default upon power-up is 0). A hot start occurs when a WDT time-out has occurred (bit 7 is set to 1). Bit 7 of the IRQ register is read-only and is automatically reset to 0 when read. Watch-Dog Timer . The WDT time-out is ----------------------------. f ( Hz ) WDT During HALT (D5-R250). This bit determines whether or not the WDT is active during HALT Mode. The default is 1, and a 1 indicates active during HALT. 294912ms 1 VCC 18 Tpc Internal Reset POR * Reset Delay = POR 147 ms 10% at 4 MHz. Reset Delay Figure 18. WDT Turn-On Timing After Reset DS97KEY0204 PRELIMINARY 17 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog PIN FUNCTIONS (Continued) Power-On-Reset (POR). A timer circuit is triggered by the system oscillator and is used for the Power-On Reset (POR) timer function. The POR time allows VCC and the oscillator circuit to stabilize before instruction execution begins. POR period is defined as: POR (ms) = 589824 f(Hz) FF 6F FF 7F NOP STOP NOP HALT ; clear the pipeline ; enter STOP Mode or ; clear the pipeline ; enter HALT Mode R250 IRQ D7 D6 D5 D4 D3 D2 D1 D0 The POR timer circuit is a one-shot timer triggered by one of two conditions: 1. Power fail to Power OK status 2. Stop-Mode Recovery The POR time is a nominal 147 ms 10%. At 4 MHz the POR timer is bypassed after Stop-Mode Recovery. HALT. HALT turns off the internal CPU clock, but not the RC oscillator. The counter/timer and external interrupts IRQ0, IRQ1, IRQ2, and IRQ3 remain active. The Z86K15 is recovered by interrupts, either externally or internally (Figure 19). STOP. This instruction turns off the internal clock and oscillator. It reduces the standby current to less than 10 A. The STOP Mode is terminated by a reset only or external reset. This causes the processor to restart the application program at address 000C (HEX) or the active external interrupt vector. In order to enter STOP (or HALT) Mode, it is necessary to first flush the instruction pipeline to avoid suspending execution in mid-instruction. To do this, the user must execute a NOP (Opcode=FFH) immediately before the appropriate sleep instruction, such as: IRQ0 = P32 Input IRQ1 = P33 Input IRQ2 = P31 Input IRQ3 = P30 Input IRQ4 = TO WDT during HALT 0 OFF * 1 ON Stop Flag 0 POR/WDT* 1 Stop Recovery WDT Hot Bit (Read Only) 0 POR* 1 WDT Timeout * On RESET Figure 19. IRQ Register The Bit 6 of IRQ Registers are flags for STOP Mode Recovery (Figure 20). Cold or Warm Start (D6). This bit is set upon entering STOP Mode. A 0 (cold) indicates that the device is awakened by a POR/WDT RESET. A 1 (warm) indicates that the device is awakened by a SMR source. This bit is reset when read. Negative transition on any of the designated row input pins or host data line will recover Z86KXX from STOP Mode. P20-P26, P30-P33 T Internal o RESET Figure 20. Stop-Mode Recovery Source 18 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Z8(R) CONTROL REGISTER DIAGRAMS R241 TMR D7 D6 D5 D4 D3 D2 D1 D0 R246 P2M D7 D6 D5 D4 D3 D2 D1 D0 1 Reserved P24-P27 I/O Definition 0 Defines Bit as OUTPUT 1 Defines Bit as INPUT 0 = No Function 1 = Load T0 0 = Disable T0 Count 1 = Enable T0 Count Reserved (Must be 0) Figure 21. Timer Mode Register (F1H: Read/Write) Port 2 Mode Register Figure 24. (F6H: Write Only) R244 T0 D7 D6 D5 D4 D3 D2 D1 D0 R247 P3M D7 D6 D5 D4 D3 D2 D1 D0 T0 Initial Value (When WRITE) (Range: 1-256 Decimal 01-00 HEX) T0 Current Value (When READ) 0 Port (24-27) Open-Drain 1 Port (24-27) Push-Pull Reserved (Must be 0) Counter/Timer 0 Register Figure 22. (F4H: Read/Write) Port 2 Open Drain Mode Register Figure 25. (F7H: Write Only) R245 PRE0 D7 D6 D5 D4 D3 D2 D1 D0 R249 IPR D7 D6 D5 D4 D3 D2 D1 D0 Count Mode 0 = T0 Single Pass 1 = T0 Modulo N Reserved (Must be 0) Prescaler Modulo (Range: 1-64 Decimal 01-00 HEX) Interrupt Group Priority Reserved = 000 C > A > B = 001 A > B > C = 010 A > C > B = 011 B > C > A = 100 C > B > A = 101 B > A > C = 110 Reserved = 111 IRQ1, IRQ4 Priority (Group C) 0 = IRQ1 > IRQ4 1 = IRQ4 > IRQ1 IRQ0, IRQ2 Priority (Group B) 0 = IRQ2 > IRQ0 1 = IRQ0 > IRQ2 Reserved Reserved (Must be 0) Prescaler 0 Register Figure 23. (F5H: Write Only) Figure 26. Interrupt Priority Register (F9H: Write Only) DS97KEY0204 PRELIMINARY 19 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog R250 IRQ D7 D6 D5 D4 D3 D2 D1 D0 R252 Flags D7 D6 D5 D4 D3 D2 D1 IRQ0 = P32 Input IRQ1 = P33 Input IRQ2 = P31 Input IRQ3 = P30 Input IRQ4 = TO Stop Delay 0 OFF * 1 ON Stop Flag 0 POR/WDT* 1 Stop Recovery WDT Hot Bit (Read Only) 0 POR* 1 WDT Timeout D0 User Flag F1 User Flag F2 Half Carry Flag Decimal Adjust Flag Overflow Flag Sign Flag Zero Flag Carry Flag * On RESET Figure 27. Interrupt Request Register (FAH: Read/Write) Figure 29. Flag Register (FCH: Read/Write) R253 RP R251 IMR D7 D6 D5 D4 D3 D2 D1 D0 Working Registers 1 Enables IRQ0-IRQ4 (D0= IRQ0) Reserved (Must be 0) 1 Enables Interrupts r4 r5 r6 r7 Register Pointer D7 D6 D5 D4 D3 D2 D1 D0 Figure 28. Interrupt Mask Register (FBH: Read/Write) Register Pointer Figure 30. (FDH: Read/Write) R255 SPL D7 D6 D5 D4 D3 D2 D1 D0 Stack Pointer Lower Byte (SP0-SP7) Stack Pointer Figure 31. (FFH: Read/Write) 20 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers PACKAGE INFORMATION 1 Figure 32. 40-Pin DIP Package Diagram Figure 33. 44-Pin PLCC Package Diagram DS97KEY0204 PRELIMINARY 21 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog Figure 34. 44-Pin QFP Package Diagram 22 PRELIMINARY DS97KEY0204 Zilog Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers ORDERING INFORMATION 5 MHz 40-Pin DIP Z86KXX05PSC 5 MHz 44-Pin PLCC Z86KXX05VSC 5 MHz 44-Pin QFP Z86KXX05FSC 1 For fast results, contact your local Zilog sales office for assistance in ordering the part desired. CODES Package P = Plastic DIP V = Plastic Leaded Chip Carrier F = Quad Flat Pack Environmental C = Plastic Standard Temperature S = 0C to +70C Speed 05 = 5 MHz Example: Z 86K15 05 P S C is a Z86K15, 05 MHz, DIP, 0 to +70C, Plastic Standard Flow Environmental Flow Temperature Package Speed Product Number Zilog Prefix (c) 1997 by Zilog, Inc. All rights reserved. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of Zilog, Inc. The information in this document is subject to change without notice. Devices sold by Zilog, Inc. are covered by warranty and patent indemnification provisions appearing in Zilog, Inc. Terms and Conditions of Sale only. Zilog, Inc. makes no warranty, express, statutory, implied or by description, regarding the information set forth herein or regarding the freedom of the described devices from intellectual property infringement. Zilog, Inc. makes no warranty of merchantability or fitness for any purpose. Zilog, Inc. shall not be responsible for any errors that may appear in this document. Zilog, Inc. makes no commitment to update or keep current the information contained in this document. Zilog's products are not authorized for use as critical components in life support devices or systems unless a specific written agreement pertaining to such intended use is executed between the customer and Zilog prior to use. Life support devices or systems are those which are intended for surgical implantation into the body, or which sustains life whose failure to perform, when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in significant injury to the user. Zilog, Inc. 210 East Hacienda Ave. Campbell, CA 95008-6600 Telephone (408) 370-8000 FAX 408 370-8056 Internet: http://www.zilog.com DS97KEY0204 PRELIMINARY 23 Z86K13/K14/K15/K16/K17/K18 CMOS Z8(R) 8-Bit MCU Keyboard Controllers Zilog 24 PRELIMINARY DS97KEY0204 |
Price & Availability of Z86K16 |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |